﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace Chenxin.Lib.Passport.BLL
{
    public class User_Permits
    {

        public User_Permits()
        { }

        /// <summary>
        /// 获得数据列表
        /// </summary>
        public List<string> GetList(Guid gdUserId)
        {
            DataSet ds = Chenxin.Lib.Passport.DAL.User_Permits.GetList(gdUserId);
            List<string> ls = new List<string>();

            if (ds.Tables[0].Rows.Count == 0)
            {
                return null;
            }
            else
            {
                foreach (DataRow dr in ds.Tables[0].Rows)
                {
                    ls.Add((string)dr[0]);
                }
                return ls;
            }
        }
    }
}
